<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <button @click="num++">点我增加</button>
        <button @click="num--">点我减少</button>
        一共有<span v-text="num"></span>朵鲜花
    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    let  vm = new Vue({
        el:"#app",
        data:{
            num: 1
        }
    });
</script>
</html>